#ifndef ADMINMANAGEMENT_H
#define ADMINMANAGEMENT_H

#include <QWidget>
#include "usermanager.h"

namespace Ui {
class AdminManagement;
}

class AdminManagement : public QWidget
{
    Q_OBJECT

public:
    explicit AdminManagement(QWidget *parent = nullptr);
    ~AdminManagement();

    void setUserManager(UserManager* manager);

private slots:
    void onAddUser();
    void onEditUser();
    void onDeleteUser();

public slots:
    void refreshTable();

private:
    Ui::AdminManagement *ui;
    UserManager *m_userManager;
};

#endif // ADMINMANAGEMENT_H
